package com.bw.controller;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.bw.domain.SysPost;
import com.bw.service.SysPostService;

public class CellDataDemoHeadDataListenerPost1 implements ReadListener<SysPost> {

    private SysPostService sysPostService;

    public CellDataDemoHeadDataListenerPost1(SysPostService sysPostService) {
        this.sysPostService = sysPostService;
    }


    @Override
    public void invoke(SysPost sysPost, AnalysisContext analysisContext) {
        sysPostService.insertUsers(sysPost);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}